package com.tcsl.exercise.demo.dao;

import com.tcsl.exercise.demo.entity.ItemEntity;
import com.tcsl.exercise.demo.entity.ItemSizeCa;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface ItemMapper {

    List<ItemEntity> selectPage(@Param("curr") Integer curr, @Param("pageSize") Integer pageSize,@Param("keyword") String keyWord);

    List<ItemSizeCa> selectAllItemCA();

    int addItem(@Param("entity") ItemEntity ItemEntity);

    int deleteById(@Param("id")Long id);

    List<ItemEntity> selectByElem(@Param("entity") ItemEntity ItemEntity,@Param("keyword")String keyword);

    List<ItemEntity> selectByNameExId(@Param("entity")ItemEntity itemEntity);

    int updateById(@Param("entity")ItemEntity itemEntity);


}
